package se137.hrbust.hlgshopping137.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName tb_product137
 */
@TableName(value ="tb_product137")
@Data
public class Product137 implements Serializable {
    /**
     * 商品ID
     */
    @TableId(value = "FPID", type = IdType.AUTO)
    private Long pid;

    /**
     * 商品类别ID
     */
    @TableField(value = "FPCatId")
    private Integer pcatid;

    /**
     * 商品名称
     */
    @TableField(value = "FPName137")
    private String pname137;

    /**
     * 商品缩略图1
     */
    @TableField(value = "FPImage1")
    private String pimage1;

    /**
     * 商品缩略图2
     */
    @TableField(value = "FPImage2")
    private String pimage2;

    /**
     * 商品缩略图3
     */
    @TableField(value = "FPImage3")
    private String pimage3;

    /**
     * 商品缩略图4
     */
    @TableField(value = "FPImage4")
    private String pimage4;

    /**
     * 商品缩略图5
     */
    @TableField(value = "FPImage5")
    private String pimage5;

    /**
     * 商品详情
     */
    @TableField(value = "FPDetail137")
    private String pdetail137;

    /**
     * 上架状态[默认0下架;1上架]
     */
    @TableField(value = "FPListSate")
    private Integer plistsate;

    /**
     * 上架时间
     */
    @TableField(value = "FPOnLineDate")
    private LocalDateTime ponlinedate;

    /**
     * 下架时间
     */
    @TableField(value = "FPOffLineDate")
    private LocalDateTime pofflinedate;

    /**
     * 上架用户ID
     */
    @TableField(value = "FPOnLineUserId")
    private Integer ponlineuserid;

    /**
     * 下架用户ID
     */
    @TableField(value = "FPOffLineUserId")
    private Integer pofflineuserid;

    /**
     * 逻辑删除
     */
    @TableField(value = "FPDelete")
    private Integer pdelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Product137 other = (Product137) that;
        return (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getPcatid() == null ? other.getPcatid() == null : this.getPcatid().equals(other.getPcatid()))
            && (this.getPname137() == null ? other.getPname137() == null : this.getPname137().equals(other.getPname137()))
            && (this.getPimage1() == null ? other.getPimage1() == null : this.getPimage1().equals(other.getPimage1()))
            && (this.getPimage2() == null ? other.getPimage2() == null : this.getPimage2().equals(other.getPimage2()))
            && (this.getPimage3() == null ? other.getPimage3() == null : this.getPimage3().equals(other.getPimage3()))
            && (this.getPimage4() == null ? other.getPimage4() == null : this.getPimage4().equals(other.getPimage4()))
            && (this.getPimage5() == null ? other.getPimage5() == null : this.getPimage5().equals(other.getPimage5()))
            && (this.getPdetail137() == null ? other.getPdetail137() == null : this.getPdetail137().equals(other.getPdetail137()))
            && (this.getPlistsate() == null ? other.getPlistsate() == null : this.getPlistsate().equals(other.getPlistsate()))
            && (this.getPonlinedate() == null ? other.getPonlinedate() == null : this.getPonlinedate().equals(other.getPonlinedate()))
            && (this.getPofflinedate() == null ? other.getPofflinedate() == null : this.getPofflinedate().equals(other.getPofflinedate()))
            && (this.getPonlineuserid() == null ? other.getPonlineuserid() == null : this.getPonlineuserid().equals(other.getPonlineuserid()))
            && (this.getPofflineuserid() == null ? other.getPofflineuserid() == null : this.getPofflineuserid().equals(other.getPofflineuserid()))
            && (this.getPdelete() == null ? other.getPdelete() == null : this.getPdelete().equals(other.getPdelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getPcatid() == null) ? 0 : getPcatid().hashCode());
        result = prime * result + ((getPname137() == null) ? 0 : getPname137().hashCode());
        result = prime * result + ((getPimage1() == null) ? 0 : getPimage1().hashCode());
        result = prime * result + ((getPimage2() == null) ? 0 : getPimage2().hashCode());
        result = prime * result + ((getPimage3() == null) ? 0 : getPimage3().hashCode());
        result = prime * result + ((getPimage4() == null) ? 0 : getPimage4().hashCode());
        result = prime * result + ((getPimage5() == null) ? 0 : getPimage5().hashCode());
        result = prime * result + ((getPdetail137() == null) ? 0 : getPdetail137().hashCode());
        result = prime * result + ((getPlistsate() == null) ? 0 : getPlistsate().hashCode());
        result = prime * result + ((getPonlinedate() == null) ? 0 : getPonlinedate().hashCode());
        result = prime * result + ((getPofflinedate() == null) ? 0 : getPofflinedate().hashCode());
        result = prime * result + ((getPonlineuserid() == null) ? 0 : getPonlineuserid().hashCode());
        result = prime * result + ((getPofflineuserid() == null) ? 0 : getPofflineuserid().hashCode());
        result = prime * result + ((getPdelete() == null) ? 0 : getPdelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pid=").append(pid);
        sb.append(", pcatid=").append(pcatid);
        sb.append(", pname137=").append(pname137);
        sb.append(", pimage1=").append(pimage1);
        sb.append(", pimage2=").append(pimage2);
        sb.append(", pimage3=").append(pimage3);
        sb.append(", pimage4=").append(pimage4);
        sb.append(", pimage5=").append(pimage5);
        sb.append(", pdetail137=").append(pdetail137);
        sb.append(", plistsate=").append(plistsate);
        sb.append(", ponlinedate=").append(ponlinedate);
        sb.append(", pofflinedate=").append(pofflinedate);
        sb.append(", ponlineuserid=").append(ponlineuserid);
        sb.append(", pofflineuserid=").append(pofflineuserid);
        sb.append(", pdelete=").append(pdelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}